package com.example.app.components.MyCheckBox

import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.material3.Checkbox
import androidx.compose.material3.CheckboxColors
import androidx.compose.material3.CheckboxDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.example.app.ui.theme.my_description_color


@Composable
fun <T> MyCheckBox(
    checked: Boolean,
    onCheckedChange: ((Boolean) -> Unit)?,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: CheckboxColors = CheckboxDefaults.colors(checkedColor = MaterialTheme.colorScheme.primary,
        uncheckedColor = my_description_color),
    interactionSource: MutableInteractionSource? = null) {
    Checkbox(
        checked,
        onCheckedChange,
        modifier,
        enabled,
        colors,
        interactionSource,
    )
}